<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>

</style>
<body>
  <div></div>
  <script>  
    new Promise(resolve => {
      setTimeout(() => {
        resolve("I'm a Promise!");
      }, 2000)
    }).then(value => console.log(value))
  </script>
</body>
</html>